#include "bomberlib.hh"
#include "Object.hh"

namespace Object
{
  void Cube::initialize(void)
  {
  }
  void Cube::update(gdl::GameClock const & gameClock, gdl::Input & input)
  {
  }
  void Cube::draw(void)
  {
    glBegin(GL_QUADS);
   
    glColor3f(1.0f, 0.50f, 0.75f);
   
    /// Vertex superieur gauche
    glVertex3f(-150.0f, 150.0f, 150.0f);
    /// Vertex inferieur gauche
    glVertex3f(-150.0f, -150.0f, 150.0f);
    /// Vertex inferieur droit
    glVertex3f(150.0f, -150.0f, 150.0f);
    /// Vertex superieur droit
    glVertex3f(150.0f, 150.0f, 150.0f);
    /// Vertex superieur gauche
    glVertex3f(-150.0f, 150.0f, -150.0f);
    /// Vertex inferieur gauche
    glVertex3f(-150.0f, -150.0f, -150.0f);
    /// Vertex inferieur droit
    glVertex3f(-150.0f, -150.0f, 150.0f);
    /// Vertex superieur droit
    glVertex3f(-150.0f, 150.0f, 150.0f);
    /// Vertex superieur gauche
    glVertex3f(150.0f, 150.0f, -150.0f);
    /// Vertex inferieur gauche
    glVertex3f(150.0f, -150.0f, -150.0f);
    /// Vertex inferieur droit
    glVertex3f(-150.0f, -150.0f, -150.0f);
    /// Vertex superieur droit
    glVertex3f(-150.0f, 150.0f, -150.0f);
    /// Vertex superieur gauche
    glVertex3f(150.0f, 150.0f, 150.0f);
    /// Vertex inferieur gauche
    glVertex3f(150.0f, -150.0f, 150.0f);
    /// Vertex inferieur droit
    glVertex3f(150.0f, -150.0f, -150.0f);
    /// Vertex superieur droit
    glVertex3f(150.0f, 150.0f, -150.0f);

    glEnd();
  }
}
